import request from '@/utils/request'
import qs from "qs"

export default {

    // 根据订单id查询
    getById(orderId){
return request({

    url: '/api-order/order-item/getById',
    method: 'get',
    params: {orderId}
})

    },
    // 根据选择中的订单，使用订单id批量查询订单项
    getByIdList(ids){

        var data=qs.stringify({ids});
        return request({
            url: '/api-order/order-item/getByIdList',
            method: 'post',
             data
        })
    }
}